import java.util.Scanner;

public class text {


        public static void main3(String[] args) {
            Scanner scanner = new Scanner(System.in);
            while (scanner.hasNextInt()) {
                int x = scanner.nextInt();
                int y = scanner.nextInt();
                Data data = new Data(x, y);
                System.out.println(data.getX() + data.getY());
            }
        }

    }

    class Data {

        public int x;
        public int y;

        public Data(int x, int y) {
            this.x = x;
            this.y = y;
        }

        public int getX() {
            return x;
        }

        public int getY() {
            return y;
        }








    //获取一个数二进制序列中所有的偶数位和奇数位， 分别输出二进制序列
    public static void main2(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        for (int i = 31; i >= 1; i -= 2) {
            System.out.println(((a >>> i) & 1) + " ");

        }
        System.out.println();
        for (int i = 30; i >= 0; i -= 2) {
            System.out.println(((a >>> i) & 1) + " ");
        }
    }






    //多组输入，一个整数（2~20），表示输出的行数，也表示组成“X”的反斜线和正斜线的长度。
    public static void main1(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()){
            int i = sc.nextInt();
            for(int k = 0;k < i;k++){
                for(int j = 0; j < i;j++){
                    if(k == j ||(k + j) ==i - 1){
                        System.out.print("*");
                    }else{
                        System.out.print(" ");
                    }
                }System.out.println();
            }
        }
    }
}
